package org.teamswift.crow.rbac.primaryKey;

import lombok.Data;

import javax.persistence.Embeddable;
import java.io.Serializable;

@Embeddable
@Data
public class RoleForeignKey implements Serializable {

    private Integer roleId;

    private String permissionResource;

    private String action;

    @Override
    public String toString() {
        return String.format("%d-%s-%s", roleId, permissionResource, action);
    }

}
